CFLAGS=-g

SOURCES=amrtmain.c calcmain.c sqrtmain.c

PROGRAMS=$(SOURCES:.c=)

all: ${PROGRAMS}

amrtmain: amrtmain.c
	${CC} ${CFLAGS} -o $@ $< longmath.c
calcmain: calcmain.c
	${CC} ${CFLAGS} -o $@ $< longmath.c
sqrtmain: sqrtmain.c
	${CC} ${CFLAGS} -o $@ $< longmath.c -lm
    
clean:
	rm -rf ${PROGRAMS}
